package com.kaili.controller.common.v1;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.plugins.Page;
import com.kaili.client.service.ILoginUserInfoService;
import com.kaili.common.exception.BaseExcept;
import com.kaili.common.util.FreemarkUtils;
import com.kaili.common.util.LoginDetailUtils;
import com.kaili.db.service.*;
import com.kaili.except.ResponseStatus;
import com.kaili.feign.UserFeignClient;
import com.kaili.pojo.dto.stowage.StowageAddBean;
import com.kaili.pojo.dto.stowage.StowageQueryDTO;
import com.kaili.pojo.dto.stowage.StowageQueryUnLoadDTO;
import com.kaili.pojo.entity.BaseCar;
import com.kaili.pojo.vo.EwbQueryVO;
import com.kaili.pojo.vo.StowageInfoDetailQueryVO;
import com.kaili.pojo.vo.StowageInfoVO;
import com.kaili.pojo.vo.StowageQueryVO;
import com.kaili.version.ApiVersion;
import freemarker.template.Configuration;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.apache.commons.beanutils.BeanMap;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.MessageSource;
import org.springframework.web.bind.annotation.*;

import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import static com.kaili.except.ResponseStatus.RESPONSE_DATA_EMPTY;

@ApiVersion(1)
@RequestMapping("/{api_version}")
@RestController("stowageControllerC")
@Api(tags = "[PDA和WEB端通用]配载发车服务", description = "[PDA和WEB端通用]配载发车相关API")
public class StowageController {
    @Autowired
    IHsBasicSeqService seqService;

    @ApiOperation(value = "获取配载单号")
    @GetMapping("/c/stowages/id")
    String setStowageCode() {
        return seqService.seqByTypeWithType("PZ");
    }

}
